package com.bjx.generator.service;

import com.bjx.generator.domain.entity.TableFieldEntity;

import java.util.List;

/**
 * @desc: 代码服务
 * @author: liushuai
 * @date: 2022/9/10 22:16
 */
public interface IDatabaseService {
    /**
     * 查询数据库中表名列表
     * @param
     * @return: com.bjx.common.core.domain.R
     * @Author: liushuai
     * @Date: 2022/9/10
     */
    List<String> listTableName(String schemaName);
    /**
     * 根据表名获取表注释
     * @param tableName
     * @return: java.lang.String
     * @Author: liushuai
     * @Date: 2022/9/15
     */
    String selectTableComment(String tableName);


    /**
     * 根据表名获取表字段信息
     * @param tableName
     * @return: java.util.List<com.bjx.generator.domain.entity.TableFieldEntity>
     * @Author: liushuai
     * @Date: 2022/9/15 15:42
     */
    List<TableFieldEntity> selectTableFieldByTableName(String tableName);
}
